package com.benromberg.jameshook.internal.util;

import java.lang.reflect.ParameterizedType;

public abstract class GenericTypeAware<T> {
	@SuppressWarnings("unchecked")
	public Class<T> getGenericClass() {
		return (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
	}

}
